<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        .container {
            display: flex;
        }
    </style>
  </head>
  <body>
    <div id="app">
      <p>请选择您喜欢的专栏</p>
      <div class="container">
        <p v-for="(item,index) in like">
            <input type="checkbox" :value="item" v-model="likes" /> {{ item }}
        </p><br>
        <p v-for="(item,index) in likes">{{item}}</p>
      </div>
    </div>
    <script src="./vue.js"></script>
    <script>
      const app = new Vue({
        el: "#app",
        data: {
          like: [
            "科幻",
            "喜剧",
            "动漫",
            "冒险",
            "科技",
            "军事",
            "娱乐",
            "奇闻",
          ],
          likes:[],
          isCheck:false
        },
      });
    </script>
  </body>
</html>
